//-------------------------------------------------------------------
//	Copyright (c) 2012-2014 Zhirnov Andrey
//	This file is part of the "UXGEN-ES" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

#pragma once

#include "Base/Engine.Base.h"


// Resources //

namespace Engine
{
namespace Base
{
	namespace EResource
	{
		const type	_AUDIO_BASE		= (type) ( int(AUDIO) | int(0x01000000) );
		const type	AUDIO_SAMPLE	= (type) ( int(_AUDIO_BASE) + 1 );
	};

}	// Base
}	// Engine



// Platfroms //

#ifdef PLATFORM_ANDROID

namespace Engine
{
namespace android
{
#	include <SLES/OpenSLES.h>
#	include "SLES/OpenSLES_Android.h"

}	// android
}	// Engine

#endif	// PLATFORM_ANDROID


#ifdef PLATFORM_WINDOWS

namespace Engine
{
namespace winapi
{

#	include <bass.h>

}	// winapi
}	// Engine

#endif	// PLATFORM_WINDOWS



// Types //

namespace Engine
{
namespace Audio
{
	using namespace Base;

	
	struct EPlayingState
	{
		enum type
		{
			STOP	= 1,
			PLAY,
			PAUSE,
		};
	};


	struct EAudioFormat
	{
		enum type
		{
			UNKNOWN	= 0,
			MP3,
			OGG,
			WAV
		};
	};


}	// Audio
}	// Engine